import request from '@/utils/request'

// 查询提示词维护列表
export function listPrompts(query) {
  return request({
    url: '/article/prompts/list',
    method: 'get',
    params: query
  })
}

// 查询提示词维护详细
export function getPrompts(id) {
  return request({
    url: '/article/prompts/' + id,
    method: 'get'
  })
}

// 新增提示词维护
export function addPrompts(data) {
  return request({
    url: '/article/prompts',
    method: 'post',
    data: data
  })
}

// 修改提示词维护
export function updatePrompts(data) {
  return request({
    url: '/article/prompts',
    method: 'put',
    data: data
  })
}

// 删除提示词维护
export function delPrompts(id) {
  return request({
    url: '/article/prompts/' + id,
    method: 'delete'
  })
}
